<%@ page language="java" contentType="text/html; charset=UTF-8"
    import="java.util.*,kk.*" pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
  <head>
    
    
    <title>My JSP 'checklogin.jsp' starting page</title>
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->

  </head>
  
  <body>
    <%
  	//session.setMaxInactiveInterval(5);
      NewsUser  stu=(NewsUser)session.getAttribute("USER_LOGIN");
      if(stu==null){
      	out.print("<script>alert('您还没有登录，请登录');location.replace('shouye.jsp');</script>");
      	return;
      }
      request.setCharacterEncoding("utf-8");
      String s=request.getParameter("opr");
      if(s!=null&&s.equals("1"))
      out.print("<script>alert('登陆成功');location.replace('admin.jsp');</script>");
  %>
  </body>
</html>
